/**
 * 文本链接 a
 */
//	_EsdDynamicTransformationScript.navBlock = {}; //定义区域跳转类
//	_EsdDynamicTransformationScript.navBlock.debug = true; //是否是调试模式，调试模式有红边线，非调试模式关闭红边框
//	//定义跳转 使用jquery选择器语法
//	_EsdDynamicTransformationScript.navBlock.selector = {};

//公共的
_EsdDynamicTransformationScript.navBlock.selector.top = "#alink";
$("#alink > tbody > tr:nth-child(2) > td > table").attr("id","nav");
_EsdDynamicTransformationScript.navBlock.selector.nav = "#alink";
$("body > iframe:last").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";

//面包屑导航（除首页），实际目标是上下一体结构的目录页
if( $(".CurrChnlCls").length > 0 ){
	
	//目录页的翻页input处理
	$("#num").attr("title","跳转到第多少页");
	$("#num").attr("placeholder","跳转到第多少页");
	$(".zt9 input[type='submit']").attr("title","提交");
	$(".zt9 input[type='submit']").attr("placeholder","提交");
	
	$("body > table:nth-child(6)").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("body > table:nth-child(6)").addClass("navBlock");
	$("body > table:nth-child(6) > tbody > tr:nth-child(1)").addClass("navBlock");
	$("body > table:nth-child(6) > tbody > tr:nth-child(2)").addClass("navBlock");
	
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

//实际目标是左右结构的目录页（这里面包含了文章页，下面文章页单独处理会覆盖它）
if( location.href.startsWith("http://czt.jl.gov.cn/jggk/") || location.href.startsWith("http://czt.jl.gov.cn/zzfg/") || location.href.startsWith("http://czt.jl.gov.cn/sjzl/") ){
	$("body > table:nth-child(6)").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	$("body > table:nth-child(6) > tbody > tr:nth-child(1) > td:nth-child(1)").attr("id","left");
	_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
	$("body > table:nth-child(6) > tbody > tr:nth-child(1) > td:nth-child(2)").attr("id","right");
	_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("body > table:nth-child(6) > tbody > tr:nth-child(1) > td:nth-child(1)").addClass("navBlock");
	$("body > table:nth-child(6) > tbody > tr:nth-child(1) > td:nth-child(2)").addClass("navBlock");

	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

//上下一体结构目录
if( $(".blu").length > 0 ){
	
	//目录页的翻页input处理
	$("#num").attr("title","跳转到第多少页");
	$("#num").attr("placeholder","跳转到第多少页");
	$(".zt9 input[type='submit']").attr("title","提交");
	$(".zt9 input[type='submit']").attr("placeholder","提交");
	
	$("body > table:eq(1)").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	$("body > table:eq(1) > tbody > tr:eq(1)").attr("id","content");
	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("body > table:eq(1) > tbody > tr:eq(0)").addClass("navBlock");
	$("body > table:eq(1) > tbody > tr:eq(1)").addClass("navBlock");
	
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}


//文章页处理
if( $(".colorfont").length > 0 ){
	$(".bkh").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	$(".concent").attr("id","content");
	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$(".bkh").addClass("navBlock");
	$("body > table.bkh > tbody > tr > td > table:nth-child(2)").addClass("navBlock");
	$("body > table.bkh > tbody > tr > td > table:nth-child(3)").addClass("navBlock");
	
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

if(location.href=="http://czt.jl.gov.cn/" || location.href=="http://czt.jl.gov.cn/index.html"){
//首页
	$("body>.bor").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	$("body>table:eq(5) tbody tr>td:eq(0)").attr("id","left");
	_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
	$("body>table:eq(5) tbody tr>td:eq(2)").attr("id","right");
	_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
	$("body>table:eq(5) tbody tr>td:eq(1)").attr("id","content");
	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("#slideBox").addClass("navBlock");
	$("#slideBox").parent().next().addClass("navBlock");
	$("#slideBox1").addClass("navBlock");
	$("#main > tbody > tr > td:nth-child(2)").addClass("navBlock");
	$("body > table:nth-child(17) > tbody > tr > td:nth-child(1) > table").addClass("navBlock");
	$("body > table:nth-child(17) > tbody > tr > td:nth-child(2) > table").addClass("navBlock");
	$("body > table:nth-child(17) > tbody > tr > td:nth-child(3) > table").addClass("navBlock");
	 
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}


if(location.href=="http://czt.jl.gov.cn/hdjl/gzzx/wyxx/"){
	//热点问题，我要写信

	//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
	$("iframe:first").attr("id","header");
	_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
	_EsdDynamicTransformationScript.navBlock.selector.nav = "#header";
	$("table:first").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("table:first table").addClass("navBlock");

	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}	


